package com.hoshiicloud.shxping.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author yangcheng
 * @version 1.0
 * @title: ESSpuDTO
 * @description: ES商品spu实体
 * @date 2019/9/12 10:35
 * @mail maiboyc@163.com
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ESSpuDTO implements Serializable {

    /**
     * ID
     */
    private Long id;

    /**
     * spu id
     */
    private Long baseSpuId;


    /**
     * 租户ID
     */
    private Long companyId;

    /**
     * 平台ID
     */
    private Long platformId;

    /**
     * 店铺ID
     */
    private Long storeId;

    /**
     * 上级店铺ID
     */
    private Long parentStoreId;

    /**
     * skuId
     */
    private Long skuId;

    /**
     * baseSkuId
     */
    private Long baseSkuId;

    /**
     * 提货时间间隔
     */
    private Integer  receiptInterval;

    /**
     * 提货时间
     */
    private LocalDateTime receiptDate;

    /**
     * 标题
     */
    private String title;

    /**
     * 商品主图
     */
    private String spuImage;

    /**
     * 排序权重
     */
    private Long weight;

    /**
     * 售价
     */
    private BigDecimal salePrice;

    /**
     * 市场价
     */
    private BigDecimal maketPrice;

    /**
     * spu营销类目ID
     */
    private Long salesCategoryId;

    /**
     * 是否分销商,0 否 1是
     */
    private Integer isDistributor;
}
